package com.xinnet.mms.cart.service;

import java.sql.SQLException;
import java.util.List;

import org.springframework.stereotype.Service;

import com.xinnet.mms.entity.Customer;
import com.xinnet.mms.entity.ShopCart;

@Service
public interface ShopCartService {
	/**
	 * 
	 * 功能描述：根据会员ID取得该会员购物车内的产品
	 * 
	 * @author 王湛智
	 * 
	 * @param cusId
	 * @return
	 * @throws SQLException
	 */
	public List<ShopCart> getShopCartByCusId(String cusId) throws SQLException;
	/**
	 * 
	 * 功能描述：查询某个会员的购物车（分页）并将数据封装成Customer对象
	 * 
	 * @author 王湛智
	 * 
	 * @param pageView
	 * @param cusId
	 * @return
	 * @throws Exception
	 */
	public List<Customer> getShopCartByCusIdPackageToCustomer(String cusId) throws Exception;
}
